//
//  ILVideoRequest.h
//  CMKit_Example
//
//  Created by hufangyao1 on 2022/5/6.
//  Copyright © 2022 chuangmi. All rights reserved.
//

#ifndef ILVideoRequest_h
#define ILVideoRequest_h
#import <Foundation/Foundation.h>
//@class ILException;

//typedef void(^ILCompletionBlock)(NSDictionary<NSString *,id> * _Nullable resp, ILException* _Nullable e);
typedef void(^ILCompletionBlock)(NSDictionary<NSString *,id> * _Nullable resp, NSError* _Nullable e);


@interface ILVideoRequest : NSObject

+(instancetype)sharedInstance;

- (void)doGetMethod:(NSString *)url
          withBlock:(ILCompletionBlock)block;

- (void)doGetMethod:(NSString *)url
           withJson:(NSDictionary *)json
          withBlock:(ILCompletionBlock)block;

- (void)doPostMethod:(NSString *)url
            withJson:(id)json
           withBlock:(ILCompletionBlock)block;



@end

#endif /* ILVideoRequest_h */
